export const listOption = {
  border: true,
  stripe: true,
  menuAlign: "center",
  index: true,
  searchSpan: 7,
  indexLabel: "序号",
  labelWidth: "100",
  viewBtn: true,
  searchMenuSpan: 6,
  align: "center",
  column: [{
      label: "活动标题",
      prop: "title",
      search: true,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },
    {
      label: "缩略图",
      prop: 'thumb',
      type: 'upload',
      action: process.env.VUE_APP_BASE_API + '/admin/upload/newsThumb',
      loadText: '附件上传中，请稍等',
      listType: 'picture-img',
      tip: "推荐200*200，1M之内",
      propsHttp: {
        res: 'data',
      },
      span: 24
    },
    {
      label: "简介",
      prop: "description",
      type: 'textarea',
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },
    {
      label: "内容",
      prop: "content",
      span: 24,
      formslot: true,
      hide: true,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },
    {
      label: "报名人数",
      prop: "num",
      type: 'number',
      slot: true,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },
    {
      label: "创建时间",
      prop: "create_time",
      addDisplay: false,
      editDisplay: false,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },
  ]
};

export const cateOption = {
  border: true,
  stripe: true,
  menuAlign: "center",
  searchSpan: 7,
  labelWidth: "100",
  viewBtn: true,
  searchMenuSpan: 6,
  align: "center",
  column: [{
      label: "栏目ID",
      prop: "id",
      span: 24,
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: "栏目标题",
      prop: "name",
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },
    {
      label: "创建时间",
      prop: "create_time",
      addDisplay: false,
      editDisplay: false,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },
  ]
};


export const applyOption = {
  border: true,
  stripe: true,
  menuAlign: "center",
  searchLabelWidth: 100,
  viewBtn: true,
  dialogFullscreen: true,
  labelWidth: "200",
  delBtn: false,
  searchMenuSpan: 6,
  searchSpan: 7,
  align: "center",
  addBtn: false,
  editBtn: false,
  column: [{
    label: "活动标题",
    prop: "title",
    span: 24
  },
  {
    label: "报名人姓名",
    prop: "name",
    span: 24
  },{
    label: "微信昵称",
    prop: "nickname",
    span: 24
  },{
    label: "VIP等级",
    prop: "is_vip",
    span: 24,
    type: "radio",
    dicData: [
      {
        label: "VIP",
        value: 1
      },
      {
        label: "SVIP",
        value: 2
      }
    ],
  },{
    label: "公司",
    prop: "company",
    span: 24
  },{
    label: "职位",
    prop: "position",
    span: 24
  },{
    label: "联系电话",
    prop: "mobile",
    span: 24
  },{
    label: "报名时间",
    width: 140,
    prop: "create_time",
    span: 24
  },]
}